<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  let Set = function () {
    // 属性
    this.items = {};
    // 方法
    // add添加
    Set.prototype.add = (values) => {
      this.items[values] = values;
      return true;
    }
  };
</script>

</html>